package com.cosina.game.colorball;

public class IntegralRule {
	private static int lastDead = 0;
	
	
	public static int calSocre(int dead){
		int result = 0;
		if(lastDead < 5){
			result = dead * dead;
		}else{
			result = dead * (dead + lastDead);
		}
		lastDead = dead;
		return result;
	}
}
